<template>
    <div class="goods-list">
        <div class="good-item">
            <img src="https://img.alicdn.com/img/i4/41500212/O1CN01uxRGAW1DR8W0KMNPH_!!0-saturn_solar.jpg_210x210.jpg" alt="">
            <h1 class="title">手机 月销过千 酷驰128G大内存全网通5G手机</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥388</span>
                    <span class="old">￥868</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩6件</span>
                </p>
            </div>
        </div>

        <div class="good-item">
            <img src="https://gw1.alicdn.com/bao/uploaded/i2/1114511827/O1CN01LvtThV1PMoAAZ4Htv_!!0-item_pic.jpg_210x210.jpg" alt="">
            <h1 class="title">【8.13荣耀超级品牌日限时优惠300元】华为科技潮牌/荣耀20i</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥1299</span>
                    <span class="old">￥1599</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩60件</span>
                </p>
            </div>
        </div>

        <div class="good-item">
            <img src="https://img.alicdn.com/img/i4/41500212/O1CN01uxRGAW1DR8W0KMNPH_!!0-saturn_solar.jpg_210x210.jpg" alt="">
            <h1 class="title">手机 月销过千 酷驰128G大内存全网通5G手机</h1>
            <div class="info">
                <p class="price">
                    <span class="now">￥388</span>
                    <span class="old">￥868</span>
                </p>
                <p class="sell">
                    <span>热卖中</span>
                    <span>剩6件</span>
                </p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    
}
</script>

<style scoped>
.goods-list{
    display: flex;
    flex-wrap: wrap;
    padding: 7px;
    justify-content: space-between;
}
.good-item{
    width: 49%;
    border: 1px solid #ccc;
    box-shadow: 0 0 8px #ccc;
    margin: 4px 0;
    padding: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 293px;
}
img{
    width:100%;
}
.title{
    font-size: 14px;
}
.info{
    background-color: #eee;
}
.sell{
    display: flex;
    justify-content:space-between;
    font-size: 13px;
}
.now{
    color: red;
    font-size: 16px;
    font-weight: bold;
}
.old{
    text-decoration: line-through;
    font-size: 12px;
    margin-left: 10px;

}
</style>